<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: mets::mana_move类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classmets_1_1mana__move.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="classmets_1_1mana__move-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">mets::mana_move类 参考<span class="mlabels"><span class="mlabel">abstract</span></span><div class="ingroups"><a class="el" href="group__model.html">Model</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>A Mana Move is a move that can be automatically made tabu by the <a class="el" href="classmets_1_1simple__tabu__list.html" title="Simplistic implementation of a tabu-list.">mets::simple_tabu_list</a>.  
 <a href="classmets_1_1mana__move.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="model_8hh_source.html">model.hh</a>&gt;</code></p>
<div class="dynheader">
类 mets::mana_move 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classmets_1_1mana__move.png" usemap="#mets::mana_5Fmove_map" alt=""/>
  <map id="mets::mana_5Fmove_map" name="mets::mana_5Fmove_map">
<area href="classmets_1_1move.html" title="Move to be operated on a feasible solution." alt="mets::move" shape="rect" coords="0,0,156,24"/>
<area href="classmets_1_1clonable.html" title="An interface for prototype objects." alt="mets::clonable" shape="rect" coords="166,0,322,24"/>
<area href="classmets_1_1hashable.html" title="An interface for hashable objects." alt="mets::hashable" shape="rect" coords="332,0,488,24"/>
<area href="classmets_1_1invert__subsequence.html" title="A mets::mana_move that swaps a subsequence of elements in a mets::permutation_problem." alt="mets::invert_subsequence" shape="rect" coords="83,112,239,136"/>
<area href="classmets_1_1swap__elements.html" title="A mets::mana_move that swaps two elements in a mets::permutation_problem." alt="mets::swap_elements" shape="rect" coords="249,112,405,136"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a0faf5590c15ae4ed13470033fb7ed000"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classmets_1_1mana__move.html">mana_move</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmets_1_1mana__move.html#a0faf5590c15ae4ed13470033fb7ed000">opposite_of</a> () const</td></tr>
<tr class="memdesc:a0faf5590c15ae4ed13470033fb7ed000"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create and return a new move that is the reverse of this one  <a href="classmets_1_1mana__move.html#a0faf5590c15ae4ed13470033fb7ed000">更多...</a><br /></td></tr>
<tr class="separator:a0faf5590c15ae4ed13470033fb7ed000"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7ff17d8c4ffa899dc3ba7279e7e829c0"><td class="memItemLeft" align="right" valign="top"><a id="a7ff17d8c4ffa899dc3ba7279e7e829c0"></a>
virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmets_1_1mana__move.html#a7ff17d8c4ffa899dc3ba7279e7e829c0">operator==</a> (const <a class="el" href="classmets_1_1mana__move.html">mana_move</a> &amp;other) const =0</td></tr>
<tr class="memdesc:a7ff17d8c4ffa899dc3ba7279e7e829c0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Tell if this move equals another w.r.t. the tabu list management (for <a class="el" href="classmets_1_1simple__tabu__list.html" title="Simplistic implementation of a tabu-list.">mets::simple_tabu_list</a>) <br /></td></tr>
<tr class="separator:a7ff17d8c4ffa899dc3ba7279e7e829c0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classmets_1_1move"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classmets_1_1move')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="classmets_1_1move.html">mets::move</a></td></tr>
<tr class="memitem:a69c917e66e3f48d7df0136b6942a2476 inherit pub_methods_classmets_1_1move"><td class="memItemLeft" align="right" valign="top">virtual gol_type&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmets_1_1move.html#a69c917e66e3f48d7df0136b6942a2476">evaluate</a> (const <a class="el" href="classmets_1_1feasible__solution.html">feasible_solution</a> &amp;sol) const =0</td></tr>
<tr class="memdesc:a69c917e66e3f48d7df0136b6942a2476 inherit pub_methods_classmets_1_1move"><td class="mdescLeft">&#160;</td><td class="mdescRight">Evaluate the cost after the move.  <a href="classmets_1_1move.html#a69c917e66e3f48d7df0136b6942a2476">更多...</a><br /></td></tr>
<tr class="separator:a69c917e66e3f48d7df0136b6942a2476 inherit pub_methods_classmets_1_1move"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae80d24a084cd9a3841007f1e88c5ea12 inherit pub_methods_classmets_1_1move"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmets_1_1move.html#ae80d24a084cd9a3841007f1e88c5ea12">apply</a> (<a class="el" href="classmets_1_1feasible__solution.html">feasible_solution</a> &amp;sol) const =0</td></tr>
<tr class="memdesc:ae80d24a084cd9a3841007f1e88c5ea12 inherit pub_methods_classmets_1_1move"><td class="mdescLeft">&#160;</td><td class="mdescRight">Operates this move on sol.  <a href="classmets_1_1move.html#ae80d24a084cd9a3841007f1e88c5ea12">更多...</a><br /></td></tr>
<tr class="separator:ae80d24a084cd9a3841007f1e88c5ea12 inherit pub_methods_classmets_1_1move"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classmets_1_1clonable"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classmets_1_1clonable')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="classmets_1_1clonable.html">mets::clonable</a></td></tr>
<tr class="memitem:a7ea5694a64d4a3a38255273302caa2d0 inherit pub_methods_classmets_1_1clonable"><td class="memItemLeft" align="right" valign="top"><a id="a7ea5694a64d4a3a38255273302caa2d0"></a>
virtual <a class="el" href="classmets_1_1clonable.html">clonable</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>clone</b> () const =0</td></tr>
<tr class="separator:a7ea5694a64d4a3a38255273302caa2d0 inherit pub_methods_classmets_1_1clonable"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classmets_1_1hashable"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classmets_1_1hashable')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="classmets_1_1hashable.html">mets::hashable</a></td></tr>
<tr class="memitem:a6df9cb73c9540471b7bd3063f5064d1e inherit pub_methods_classmets_1_1hashable"><td class="memItemLeft" align="right" valign="top"><a id="a6df9cb73c9540471b7bd3063f5064d1e"></a>
virtual size_t&#160;</td><td class="memItemRight" valign="bottom"><b>hash</b> () const =0</td></tr>
<tr class="separator:a6df9cb73c9540471b7bd3063f5064d1e inherit pub_methods_classmets_1_1hashable"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>A Mana Move is a move that can be automatically made tabu by the <a class="el" href="classmets_1_1simple__tabu__list.html" title="Simplistic implementation of a tabu-list.">mets::simple_tabu_list</a>. </p>
<p>If you implement this class you can use the <a class="el" href="classmets_1_1simple__tabu__list.html" title="Simplistic implementation of a tabu-list.">mets::simple_tabu_list</a> as a ready to use tabu list.</p>
<p>You must implement a clone() method, provide an hash funciton and provide a <a class="el" href="classmets_1_1mana__move.html#a7ff17d8c4ffa899dc3ba7279e7e829c0" title="Tell if this move equals another w.r.t. the tabu list management (for mets::simple_tabu_list)">operator==()</a> method that is responsible to find if a move is equal to another.</p>
<p>NOTE: If the desired behaviour is to declare tabu the <em>opposite</em> of the last made move you can achieve that behavioud override the <a class="el" href="classmets_1_1mana__move.html#a0faf5590c15ae4ed13470033fb7ed000" title="Create and return a new move that is the reverse of this one">opposite_of()</a> method as well. </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a0faf5590c15ae4ed13470033fb7ed000"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0faf5590c15ae4ed13470033fb7ed000">&#9670;&nbsp;</a></span>opposite_of()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classmets_1_1mana__move.html">mana_move</a>* mets::mana_move::opposite_of </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Create and return a new move that is the reverse of this one </p>
<p>By default this just calls "clone". If this method is not overridden the <a class="el" href="classmets_1_1simple__tabu__list.html" title="Simplistic implementation of a tabu-list.">mets::simple_tabu_list</a> declares tabu the last made move. Reimplementing this method it is possibile to actually declare as tabu the opposite of the last made move (if we moved a to b we can declare tabu moving b to a). </p>
<div class="fragment"><div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;    { <span class="keywordflow">return</span> <span class="keyword">static_cast&lt;</span>mana_move*<span class="keyword">&gt;</span>(clone()); }</div>
</div><!-- fragment -->
</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>recognition/include/pcl/recognition/3rdparty/metslib/<a class="el" href="model_8hh_source.html">model.hh</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>mets</b></li><li class="navelem"><a class="el" href="classmets_1_1mana__move.html">mana_move</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
